import { createAxios } from '@/utils/http/axios';
import { LoginReq } from '@/api/hc/model/user';

enum Api {
  login = '/user/login/background',
}

export function loginApi(loginReq: LoginReq) {
  return createAxios({
    requestOptions: {
      apiUrl: '/hc-api',
    },
  }).post({
    url: Api.login,
    params: loginReq,
  });
}
